<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>

  <style>
    .list {
      width: 200px;
      height: 200px;
      background-color: pink;
      overflow: auto;
    }

    .item {
      height: 40px;
      text-align: center;
    }
  </style>
</head>

<body>

  <div class="list">
    <div class="item">新闻1</div>
    <div class="item">新闻2</div>
    <div class="item">新闻3</div>
    <div class="item">新闻4</div>
    <div class="item">新闻5</div>
    <div class="item">新闻6</div>
  </div>
  <script>

    // let obj = {
    //   name: 123,
    //   fn: function () {
    //     setInterval(() => {
    //       console.log(this);
    //     }, 3000)
    //   }
    // }
    // obj.fn()


  </script>
</body>

</html>